package com.bootdo.cash.service;

import com.bootdo.cash.domain.CashDO;
import com.bootdo.order.domain.RechargeDO;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Desc
 * @date 2019/12/13
 * ${tags}
 */
@Service
public interface CashService {

    CashDO get(Long userId);

    List<CashDO> list(Map<String, Object> map);

    String findUser(Long userId);

    Double findMerchantMoney(Long merchantId);

    Double findPlatformMoney();

    int count(Map<String, Object> map);

    int save(CashDO user);

    int update(CashDO user);

    int updateExamine(CashDO user);

    RechargeDO upload(byte[] b, String fileType) throws Exception;

    int rechargeSave(RechargeDO recharge);


}
